<include file="Public:header" />
<style>
.list-group {
	padding: 0;
}
.list-group li {
	border-color:#dff0d8;
}
.list-group li a {
	display: block;
}
.list-group li a .badge {
	float: right;
}
.list-group-item:first-child {
	
}
</style>

<div style="padding:5px; padding-bottom:0px;">
  <div class="alert alert-warning" role="alert" style="margin-bottom:5px;"> <strong>温馨提示：</strong>请仔细检查提现账户！ </div>
</div>
{$info.res}
<form class="checkoutform" id="checkout" action="<?php echo U('Member_account_log/detail');?>" method="post">
<div class="panel panel-success" style="margin:5px;">
  <div class="panel-heading">
    <h3 class="panel-title">资金提现</h3>
  </div>
  <div class="panel-body">
    <div class="list-group">
        <h4 class="list-group-item-heading">可提现金额:{$detail_momey} &nbsp;&nbsp;&nbsp;<span style="color:rgba(229,104,106,1.00)">手续费:&nbsp;{$poundage}%</span></h4>
        <input type="hidden" value="{$detail_momey}" name="detail" id="detail"><br />
        <input type="text" name="demomey" id="demomey" class="form-control" placeholder="提现金额" style="width:50%">
        <p class="list-group-item-text"></p>
    </div> 
  </div>
</div>
<div class="panel panel-success" style="margin:5px;">
  <div class="panel-heading">
    <h3 class="panel-title">选择提现账户</h3>
    <a href="{:U('address')}">
        <div style=" position:absolute; right:20px; margin-top:-15px;">
         <span class="glyphicon glyphicon-plus" aria-hidden="true"></span>
        </div>
    </a>
  </div>
  <div class="panel-body" style="padding: 5px; overflow:auto; height:200px;">
    <div class="list-group">
        <ul class="list-group">
            <volist name="bank" id="vo">
            <li class="list-group-item">
            <div class="radio">
              <label>
                <input type="radio" name="men_brinkid" id="men_brinkid" value="{$vo.bank_id}" >
                账户:{$vo.account} <br>
                账户名:{$vo.accountname}
              </label>
               <!-- 删除账户名 -->
                <div style=" position:absolute; right:5px; margin-top:-30px;">
                 <a href="{:U('deladr',array('id'=>$vo['bank_id']))}" onClick="return confirm('请确认删除提款账号');">
                 <span class="glyphicon glyphicon-trash" aria-hidden="true"></span>
                 </a>
                </div>
               <!-- -->
            </div>
            </li>
            </volist>            
        </ul>
    </div> 
  </div>
</div>
<div class="botton" style="width:100%; height:45px; font-size:18px; text-align:center; background:rgba(224,66,68,1.00); position:absolute; bottom:0px; line-height:45px;" onClick="checkouts()" >立即提现</div>
<div class="pages">{$pages}</div>
</form>
<script>

  
  document.getElementsByName("men_brinkid")[0].checked="checked";
  
  function checkouts(){
     
	var detail = document.getElementById("detail").value;
	 
	var demomey = document.getElementById("demomey").value;
	
	if(demomey == ""){
	   alert("请输入提现金额");
	   
	   
	    exit;
	}
	
	
	document.getElementById('checkout').submit();
	
	exit;
  
  }
  
</script>
<include file="Public:footer" />